package com.partners.dao.basic;

import com.partners.dao.bo.ProductExchangeDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ProductExchangeDao {
    int deleteByPrimaryKey(Integer id);

    int insert(ProductExchangeDO record);

    int insertSelective(ProductExchangeDO record);

    ProductExchangeDO selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ProductExchangeDO record);

    int updateByPrimaryKey(ProductExchangeDO record);

    List<Map<String,Object>> getExchangeList(Integer orderNo);

    List<Map<String,Object>> getUserExchangeList(@Param("uid") Integer uid);
}
